<?php
defined('_JEXEC') or die;
class ModRaovatsHelper
{
	public static function &getList(&$params)
	{
		$db = JFactory::getDBO();
		$query = $db->getQuery(true);
		$query->select('*');
		$query->from('#__raovat');
		$query->where('published = 1');
		$query->order('id desc');
		$db->setQuery((string) $query,0,10);
		$raovats = $db->loadObjectList();
			
		return $raovats;
	}
}
